<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hospital_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hospital_name" data-rule="required" class="form-control" name="row[hospital_name]" type="text">
        </div>
    </div>
    <div class="form-group  ">
        <label class="control-label col-xs-12 col-sm-2">{:__('选择服务类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tag_ids"  class="form-control selectpage"
                   data-source="tags/tags/index"
                   data-multiple="true"
                   data-params='{"custom[status]":1,"custom[way]":2}'
                   data-field="tag_name"
                   name="row[tag_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hospital_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-hospital_images" class="form-control" size="50" name="row[hospital_images]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-hospital_images" class="btn btn-danger faupload" data-input-id="c-hospital_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-hospital_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-hospital_images" class="btn btn-primary fachoose" data-input-id="c-hospital_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-hospital_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-hospital_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <span>建议大小：690*360</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >营业时间：</label>

        <div class="col-xs-4 col-sm-3" >
            <input  data-rule="required" class="form-control datetimepicker"
                    data-date-format="HH:mm" data-use-current="true"
                    name="row[startime]" type="text" value="">
        </div>
        <div class="col-xs-2 col-sm-1" style="font-size: 20px;">
            <label  style="padding-top: 5px"> 至</label>
        </div>
        <div class="col-xs-4 col-sm-3" style="font-size: 20px;">
            <input  data-rule="required" class="form-control datetimepicker"
                    data-date-format="HH:mm" data-use-current="true"
                    name="row[endtime]" type="text" value="">
        </div>



    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">省市区:</label>

        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
                <select class="province form-control" name="row[province_id]" data-url="ajax/area">
                    <option value=""></option>
                </select>
                <select class="city form-control" name="row[city_id]" data-query-name="province" data-url="ajax/area">
                    <option value=""></option>
                </select>
                <select class="area form-control"  name="row[area_id]" data-query-name="city" data-url="ajax/area">
                    <option value=""></option>
                </select>
            </div>
        </div>


    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" data-rule="required" name="row[address]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hospital_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-hospital_content" data-rule="required" class="form-control editor" rows="5" name="row[hospital_content]" cols="50"></textarea>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
